//
//  AboutViewController.m
//  Kids
//
//  Created by LiTengFei on 14/11/29.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];

//    self.view.maskView = [[UIView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    
        // self.view.maskView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.5];
    
//    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background1"]];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
-(void)showFromBottomInView:(UIView *)view{
    
    self.parentView = view;
    
    CGRect frame = view.frame;
    
        //  self.view.frame = CGRectMake(0, CGRectGetHeight(frame), CGRectGetWidth(frame), CGRectGetHeight(frame));
//    self.view.alpha = 0.0;
    [view addSubview:self.view];
//    [UIView  animateWithDuration:0.3 animations:^{
        self.view.alpha = 1.0;
        self.view.frame  = ((CGRect){{0,0},frame.size});
//    } completion:^(BOOL finished) {
    
//    }];
}

-(void)hideFromView:(UIView *)view{
    
    [UIView animateWithDuration:0.3 animations:^{
        self.view.alpha = 0.0;
        self.view.frame  = CGRectMake(0, CGRectGetHeight(self.view.frame), CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame));
     } completion:^(BOOL finished) {
         [self.view removeFromSuperview];
     }];
}
@end
